package com.dog

class User {
	Long id;
	String name;
	String pass;
	String toString(){
		println('用户id：$id，用户名：$name');
	}
    static constraints = {
		name(blank:false, nullable:false, unique:true)
		pass(blank:false, password:true)
    }
}
